Meta description:
When performing an action that deals fire damage, the character may spend 4 SP to apply a Biological Resistance effect to the affected target. If applied, the target gains Biological Resistance 1 for a duration of 8 seconds. Reapplying this effect while it is already active resets the duration to 8 seconds; the resistance value does not stack.
-
Name:
mScorchI
-
Displayed name:
Scorch I
-
Description:
When performing an action that deals fire damage, the character may spend 4 SP to apply a Biological Resistance effect to the affected target. If applied, the target gains Biological Resistance 1 for a duration of 8 seconds. Reapplying this effect while it is already active resets the duration to 8 seconds; the resistance value does not stack.
-
Cost:
expCost(300,150)-0
-
Script:
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Condition:
action:tagsContain([[fireDamage]])
-
Description:
-
Variables:
vScorchDuration = 8 vScorchCost = 4 vScorchResistance = 1
-
Script:
-
Action effects:
-
Use case:
vApplyScorch*3
-
Name:
Scorch
-
Description:
Spend vScorchCost.string SP to grant Biological Resistance vScorchResistance.string for vScorchDuration.string seconds.
-
Script:
if not character:has([[sBiologicalResistance]]) then sBiologicalResistance = character:createStat("sBiologicalResistance", "temporary") sBiologicalResistance.displayName:set("Biological resistance") end if not character:has([[mScorch]]) then mScorch = character:createEffect("mScorch") mScorch.displayName:set("Scorch") mScorch.description:set("The creature gains Biological Resistance {{vScorchResistance}}.") mScorch.script:set([=[character.sBiologicalResistance:addNormal({{vScorchResistance}}, [[natural]], [[Scorch]])]=]) mScorch:activate() end character.mScorch.duration:set({{vScorchDuration}})
-
Variables:
vApplyScorch = ToggleVariable([[vApplyScorch]],[[Scorch]])
-
-
-
Upgrades:
-
Name:
mScorchII
-
Displayed name:
Scorch II
-
Description:
Increase the scorch duration to 16 seconds.
-
Cost:
expCost(700,350)-150
-
Script:
master.displayName:set([[Scorch II]]) master.description:replace([[8 seconds]],[[16 seconds]]) master.addOns[1].variables:replace([[vScorchDuration = 8]],[[vScorchDuration = 16]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Name:
mScorchIII
-
Displayed name:
Scorch III
-
Description:
Reduces the SP needed to apply the scorch to 3 SP.
-
Cost:
expCost(850,400)-350
-
Script:
master.displayName:set([[Scorch III]]) master.description:replace([[spend 4 SP]],[[spend 3 SP]]) master.addOns[1].variables:replace([[vScorchCost = 4]],[[vScorchCost = 3]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Name:
mScorchIV
-
Displayed name:
Scorch IV
-
Description:
Increase the Biological Resistance to 2.
-
Cost:
expCost(1700,400)-425
-
Script:
master.displayName:set([[Scorch IV]]) master.description:replace([[Biological Resistance 1]],[[Biological Resistance 2]]) master.addOns[1].variables:replace([[vScorchResistance = 1]],[[vScorchResistance = 2]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-